CFLAG= -std=c++11 -I ../../muduo/include/
LFLAG= -L../../muduo/lib  -lmuduo_net -lmuduo_base -pthread
all: server pub_client sub_client
server: server.cc
	g++  -g $(CFLAG) $^ -o $@ $(LFLAG) -ljsoncpp
pub_client: pub_client.cc
	g++  -g $(CFLAG) $^ -o $@ $(LFLAG) -ljsoncpp
sub_client: sub_client.cc
	g++  -g $(CFLAG) $^ -o $@ $(LFLAG)	-ljsoncpp
.PHONY:clean
clean:
	rm -f server 
	rm -f pub_client
	rm -f sub_client
